<?php
/**
* 单页表模型
*/
class SinglePageModel extends Model
{	
	public function getPageInfo()
	{
		$sql="select * from bg_singlePage order by page_id desc";
		return $this->dao->fetchAll($sql);
	}
	public function insertPage($pageInfo)
	{
		extract($pageInfo);
		$sql="insert into bg_singlePage values(null,'$title','content')";
		return $this->dao->my_query($sql);
	}
	
}